# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blind-sql-bitshifting
pkgver=1.c1da934
pkgrel=1
epoch=1
pkgdesc='A blind SQL injection module that uses bitshfting to calculate characters.'
groups=('blackarch' 'blackarch-exploitation')
arch=('any')
url='https://github.com/libeclipse/blind-sql-bitshifting'
license=('MIT')
depends=('python2' 'python2-requests')
makedepends=('git')
source=("git+https://github.com/libeclipse/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 blind_sql_bitshifting.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  cp -a demo "$pkgdir/usr/share/$pkgname/"
}

